import { request } from 'umi';

export async function fetchList(body) {
  return request('/pay/charge/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function expt(body) {
  return request('/pay/charge/expt', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function exportExcel(body) {
  return request('/pay/charge/export', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    responseType: 'blob',
  });
}
